package pers.exercise.BridgePattern;

import pers.exercise.BridgePattern.impl.BigCar;
import pers.exercise.BridgePattern.impl.BossCar;
import pers.exercise.BridgePattern.impl.ElectricEngine;
import pers.exercise.BridgePattern.impl.FuelEngine;
import pers.exercise.BridgePattern.impl.HybridEngine;

public class Entry {
    public static void main(String args[]){
        RefinedCar car1 = new BossCar(new ElectricEngine());
        RefinedCar car2 = new BossCar(new HybridEngine());
        RefinedCar car3 = new BossCar(new FuelEngine());

        RefinedCar car4 = new BigCar(new ElectricEngine());
        RefinedCar car5 = new BigCar(new ElectricEngine());

        car1.drive();
        car2.drive();
        car3.drive();

        car4.drive();
        car5.drive();
    }
}
 